package com.example.androidex;

import android.os.Bundle;
import android.app.Activity;
import android.content.*;
import android.view.*;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void monClick(View v){
		Intent intent;
		
		switch(v.getId()() {
			case R.id.button1:
				Toast.makeText(this,"버튼1", LENGH__ LONG).show;
		intent = new Intent(this, ImageView.class);
		startActivity(intent);
				break;
			case R.id.button1:
				Toast.makeText(this,"버튼2", LENGH__LONG).show;
		break;
				
		}
	}
	
	
	
	
	
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	
}
